package com.sophimp.award

import androidx.activity.viewModels
import com.sophimp.award.dsl.DslHabitItem
import com.sophimp.award.vm.AwardViewModel
import com.sophimp.base.BaseRvActivity

class AwardMainActivity : BaseRvActivity() {

    private val awardVm by viewModels<AwardViewModel>()

    override fun onInitBaseLayoutAfter() {
        actionBar?.hide()
        val data = awardVm.readData()
        dslAdapter.render {
            data.forEach {
                DslHabitItem()() {
                    itemData = it
                }
            }
        }
    }

    override fun initListener() {

    }


}